<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller {

	function _initialize(){
		$id = session('admin_user_id');
    	if(empty($id)) {
    		$this->error('请登录！', U('Unlimited/login'));
    	}
	}
    public function index(){
       echo 'admin';
    }

}